<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<nav>
<span class="wrapper">    
    <div class="box">
    <c:choose>	
	<c:when test="${articulosCompra!=null}">
	<div style="background-color: #E62727; font-family:Helvetica,Arial,sans-serif; padding-bottom:8px; padding-top: 8px; margin-top:10px;">
		&nbsp; Compra:
	</div>
	<br/>
		<table cellpadding="0" cellspacing="0" style="position: static; margin-left: 4px;">
			<thead>
				<tr>
					<th>Articulo</th>
					<th>Cantidad</th>
					<th></th>
				</tr>
			</thead>
			<tbody>		
				<c:forEach items="${articulosCompra}" var="item">
				<tr>
					<td>${item.articulo.nombre}</td>
					<td>${item.cantidad}</td>
					<td>
						<input type="button" class="eliminarItemCarrito" idArticulo="${item.articulo.idProducto}">
					</td>
				</tr>
				</c:forEach>
			</tbody>		
		</table>
		
		
		<br/>
			<input type="button" id="checkoutCompra">		
		</c:when>	
	<c:otherwise>
    	No hay articulos en el carrito
	</c:otherwise>
</c:choose>
    </div>
</nav>
</span>
